package com.zhongkai.model3;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Objects;

@Entity
@Table(name = "indent2",    catalog = "")
public class Indent2 implements Serializable {
    private Long id;
    private String indUuid;
    private String auditUuid;
    private String putUuid;
    private String indName;
    private String indCount;
    private String indSum;
    private String indPrice;
    private String indPerson;
    private String personUuid;
    private Long indTime;
    private Integer indState;
    private Long ratifyTime;
    private String intRatify;
    private String indPut;
    private Long putTime;
    private String indRemove;
    private String indVender;
    private String venderName;

    private String indRemark; //备注

    private String isPut; //是否入库


    @Basic
    @Column(name = "put_uuid")
    public String getPutUuid() {
        return putUuid;
    }

    public void setPutUuid(String putUuid) {
        this.putUuid = putUuid;
    }

    @Basic
    @Column(name = "audit_uuid")
    public String getAuditUuid() {
        return auditUuid;
    }

    public void setAuditUuid(String auditUuid) {
        this.auditUuid = auditUuid;
    }

    @Basic
    @Column(name = "is_put")
    public String getIsPut() {
        return isPut;
    }

    public void setIsPut(String isPut) {
        this.isPut = isPut;
    }

    @Basic
    @Column(name = "ind_remark")
    public String getIndRemark() {
        return indRemark;
    }

    public void setIndRemark(String indRemark) {
        this.indRemark = indRemark;
    }

    @Basic
    @Column(name = "person_uuid")
    public String getPersonUuid() {
        return personUuid;
    }

    public void setPersonUuid(String personUuid) {
        this.personUuid = personUuid;
    }

    @Id
    @GenericGenerator(name = "generator", strategy = "increment")
    @GeneratedValue(generator = "generator")
    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "ind_uuid")
    public String getIndUuid() {
        return indUuid;
    }

    public void setIndUuid(String indUuid) {
        this.indUuid = indUuid;
    }

    @Basic
    @Column(name = "ind_name")
    public String getIndName() {
        return indName;
    }

    public void setIndName(String indName) {
        this.indName = indName;
    }

    @Basic
    @Column(name = "ind_count")
    public String getIndCount() {
        return indCount;
    }

    public void setIndCount(String indCount) {
        this.indCount = indCount;
    }

    @Basic
    @Column(name = "ind_sum")
    public String getIndSum() {
        return indSum;
    }

    public void setIndSum(String indSum) {
        this.indSum = indSum;
    }

    @Basic
    @Column(name = "ind_price")
    public String getIndPrice() {
        return indPrice;
    }

    public void setIndPrice(String indPrice) {
        this.indPrice = indPrice;
    }

    @Basic
    @Column(name = "ind_person")
    public String getIndPerson() {
        return indPerson;
    }

    public void setIndPerson(String indPerson) {
        this.indPerson = indPerson;
    }

    @Basic
    @Column(name = "ind_time")
    public Long getIndTime() {
        return indTime;
    }

    public void setIndTime(Long indTime) {
        this.indTime = indTime;
    }

    @Basic
    @Column(name = "ind_state")
    public Integer getIndState() {
        return indState;
    }

    public void setIndState(Integer indState) {
        this.indState = indState;
    }

    @Basic
    @Column(name = "ratify_time")
    public Long getRatifyTime() {
        return ratifyTime;
    }

    public void setRatifyTime(Long ratifyTime) {
        this.ratifyTime = ratifyTime;
    }

    @Basic
    @Column(name = "int_ratify")
    public String getIntRatify() {
        return intRatify;
    }

    public void setIntRatify(String intRatify) {
        this.intRatify = intRatify;
    }

    @Basic
    @Column(name = "ind_put")
    public String getIndPut() {
        return indPut;
    }

    public void setIndPut(String indPut) {
        this.indPut = indPut;
    }

    @Basic
    @Column(name = "put_time")
    public Long getPutTime() {
        return putTime;
    }

    public void setPutTime(Long putTime) {
        this.putTime = putTime;
    }

    @Basic
    @Column(name = "ind_remove")
    public String getIndRemove() {
        return indRemove;
    }

    public void setIndRemove(String indRemove) {
        this.indRemove = indRemove;
    }

    @Basic
    @Column(name = "ind_vender")
    public String getIndVender() {
        return indVender;
    }

    public void setIndVender(String indVender) {
        this.indVender = indVender;
    }

    @Basic
    @Column(name = "vender_name")
    public String getVenderName() {
        return venderName;
    }

    public void setVenderName(String venderName) {
        this.venderName = venderName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Indent2 indent = (Indent2) o;
        return Objects.equals(id, indent.id) &&
                Objects.equals(indUuid, indent.indUuid) &&
                Objects.equals(indName, indent.indName) &&
                Objects.equals(indCount, indent.indCount) &&
                Objects.equals(indSum, indent.indSum) &&
                Objects.equals(indPrice, indent.indPrice) &&
                Objects.equals(indPerson, indent.indPerson) &&
                Objects.equals(indTime, indent.indTime) &&
                Objects.equals(indState, indent.indState) &&
                Objects.equals(ratifyTime, indent.ratifyTime) &&
                Objects.equals(intRatify, indent.intRatify) &&
                Objects.equals(indPut, indent.indPut) &&
                Objects.equals(putTime, indent.putTime) &&
                Objects.equals(indRemove, indent.indRemove) &&
                Objects.equals(indVender, indent.indVender) &&
                Objects.equals(venderName, indent.venderName);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, indUuid, indName, indCount, indSum, indPrice, indPerson, indTime, indState, ratifyTime, intRatify, indPut, putTime, indRemove, indVender, venderName);
    }
}
